package com.base.cn.platform.os.service.manage.user.account;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = BaseService.appName,configuration = FeignAuthConfig.class)
public interface CusUserAccountHistoryService extends BaseService {

    /**
     * 用户账号历史记录
     * @param accountHistory
     * @param currentPage
     * @param createUserData
     * @return
     */
    @RequestMapping(contextPath + "/user/userAccountHistoryListPage")
    Map<String,Object> userAccountHistoryListPage(@RequestBody Map<String, Object> accountHistory,
                                                  @RequestParam("currentPage") Integer currentPage,
                                                  @RequestParam("createUserData") boolean createUserData);

    /**
     * 查找账户历史列表
     * @param accountHistory
     * @param createUserData
     * @return
     */
    @RequestMapping(contextPath + "/user/findUserAccountHistoryList")
    List<Map<String,Object>> findUserAccountHistoryList(@RequestBody Map<String, Object> accountHistory,
                                                        @RequestParam(value = "createUserData", required = false, defaultValue = "false") boolean createUserData);
}
